    $attrs = array();
    $isset=true;
    if(Input::has("LoanAmount")){
        $input_DesiredAmount = toNum(Input::get("LoanAmount"));
    }else{
        $isset=false;
    }
    $attrs["DesiredAmount"]=$input_DesiredAmount;
    $isset=true;
    if(Input::has("referrerName")){
        $input_ReferrerID = Input::get("referrerName");
    }else{
        $isset=false;
    }
    $attrs["ReferrerID"]=$input_ReferrerID;
    $isset=true;
    if(Input::has("companyName")){
        $input_ReferrerVal = Input::get("companyName");
    }else{
        $isset=false;
    }
    $attrs["ReferrerVal"]=$input_ReferrerVal;
    $$p0 = 'Y-m-d';
    if($isset){
        $input_CreatedDate =date($p0);
    }
    $attrs["CreatedDate"]=$input_CreatedDate;
    $$p0 = 'H:i:s';
    if($isset){
        $input_CreatedTime =date($p0);
    }
    $attrs["CreatedTime"]=$input_CreatedTime;
    $isset=true;
    if(Input::has("PurposeOfLoan1")){
        $input_loanpurposereason = Input::get("PurposeOfLoan1");
    }else{
        $isset=false;
    }
    $attrs["loanpurposereason"]=$input_loanpurposereason;
    $isset=true;
    if(Input::has("Filledform")){
        $input_filledout = Input::get("Filledform");
    }else{
        $isset=false;
    }
    $attrs["filledout"]=$input_filledout;
    $isset=true;
    if(Input::has("ApplicantName")){
        $input_prevclient = Input::get("ApplicantName");
    }else{
        $isset=false;
    }
    $attrs["prevclient"]=$input_prevclient;
    $isset=true;
    if(Input::has("OtherPurpose")){
        $input_purposedetail = Input::get("OtherPurpose");
    }else{
        $isset=false;
    }
    $attrs["purposedetail"]=$input_purposedetail;
    $isset=true;
    if(Input::has("BoardingRentingFee")){
        $$p0 = toNum(Input::get("BoardingRentingFee"));
    }else{
        $isset=false;
    }
    $isset=true;
    if(Input::has("PersonalLoanPaymentPeriod")){
        $$p1 = Input::get("PersonalLoanPaymentPeriod");
    }else{
        $isset=false;
    }
    if($isset){
        $input_boardingfee =expCal($p0 , $p1);
    }
    $attrs["boardingfee"]=$input_boardingfee;
    $isset=true;
    if(Input::has("BoardingRentingFee")){
        $$p0 = toNum(Input::get("BoardingRentingFee"));
    }else{
        $isset=false;
    }
    $isset=true;
    if(Input::has("LargeBills")){
        $$p1 = toNum(Input::get("LargeBills"));
    }else{
        $isset=false;
    }
    if($isset){
        $input_livingfee =CalcLivingExpensesPayment($p0 , $p1);
    }
    $attrs["livingfee"]=$input_livingfee;
    $isset=true;
    if(Input::has("preappcode")){
        $input_preappcode = Input::get("preappcode");
    }else{
        $isset=false;
    }
    $attrs["preappcode"]=$input_preappcode;
    $attrs["mc_ipaddress"]=$input_mc_ipaddress;
    $attrs["mc_browser"]=$input_mc_browser;
    $isset=true;
    if(Input::has("sendfrom")){
        $input_mc_referrer_company = Input::get("sendfrom");
    }else{
        $isset=false;
    }
    $attrs["mc_referrer_company"]=$input_mc_referrer_company;
    $isset=true;
    if(Input::has("Aop")){
        $input_amoutProperties = Input::get("Aop");
    }else{
        $isset=false;
    }
    $attrs["amoutProperties"]=$input_amoutProperties;
    $$obj1 = new AppModel\Application();
    $$obj1->app_id = uniqid();
    $attrs = array();
    $isset=true;
    if(Input::has("FirstName1")){
        $input_FirstName = cleanStr(Input::get("FirstName1"));
    }else{
        $isset=false;
    }
    $attrs["FirstName"]=$input_FirstName;
    $isset=true;
    if(Input::has("MiddleName1")){
        $input_MiddleName = cleanStr(Input::get("MiddleName1"));
    }else{
        $isset=false;
    }
    $attrs["MiddleName"]=$input_MiddleName;
    $isset=true;
    if(Input::has("SurName1")){
        $input_SurName = cleanStr(Input::get("SurName1"));
    }else{
        $isset=false;
    }
    $attrs["SurName"]=$input_SurName;
    $isset=true;
    if(Input::has("Title1")){
        $input_Title = cleanStr(Input::get("Title1"));
    }else{
        $isset=false;
    }
    $attrs["Title"]=$input_Title;
    $isset=true;
    if(Input::has("Title!!1")){
        $input_Gender = getGender(Input::get("Title!!1"));
    }else{
        $isset=false;
    }
    $attrs["Gender"]=$input_Gender;
    $isset=true;
    if(Input::has("Mobile1")){
        $input_Mobile = Input::get("Mobile1");
    }else{
        $isset=false;
    }
    $attrs["Mobile"]=$input_Mobile;
    $isset=true;
    if(Input::has("Phone1")){
        $input_HomePhone = Input::get("Phone1");
    }else{
        $isset=false;
    }
    $attrs["HomePhone"]=$input_HomePhone;
    $isset=true;
    if(Input::has("EMailAddress1")){
        $input_Email = cleanStr(Input::get("EMailAddress1"));
    }else{
        $isset=false;
    }
    $attrs["Email"]=$input_Email;
    $isset=true;
    if(Input::has("DriverLicense1")){
        $input_DriverLicense = Input::get("DriverLicense1");
    }else{
        $isset=false;
    }
    $attrs["DriverLicense"]=$input_DriverLicense;
    $isset=true;
    if(Input::has("Residency1")){
        $input_Citizenship = Input::get("Residency1");
    }else{
        $isset=false;
    }
    $attrs["Citizenship"]=$input_Citizenship;
    $isset=true;
    if(Input::has("DateOfBirth1")){
        $input_DateBirth = Input::get("DateOfBirth1");
        $input_DateBirth = \BLL\DataModel\DataType::getValueFromString("Date", $v);
    }else{
        $isset=false;
    }
    $attrs["DateBirth"]=$input_DateBirth;
    $isset=true;
    if(Input::has("ResidentialAddress1")){
        $input_StreetNo = getStreetNoFromAddress(Input::get("ResidentialAddress1"));
    }else{
        $isset=false;
    }
    $attrs["StreetNo"]=$input_StreetNo;
    $isset=true;
    if(Input::has("ResidentialAddress1")){
        $input_Street = getStreetFromAddress(Input::get("ResidentialAddress1"));
    }else{
        $isset=false;
    }
    $attrs["Street"]=$input_Street;
    $isset=true;
    if(Input::has("State1")){
        $input_State = Input::get("State1");
    }else{
        $isset=false;
    }
    $attrs["State"]=$input_State;
    $isset=true;
    if(Input::has("Postcode1")){
        $input_PostCode = Input::get("Postcode1");
    }else{
        $isset=false;
    }
    $attrs["PostCode"]=$input_PostCode;
    $isset=true;
    if(Input::has("ResidentialStatus1")){
        $input_app_ResidentialStatus = Input::get("ResidentialStatus1");
    }else{
        $isset=false;
    }
    $attrs["app_ResidentialStatus"]=$input_app_ResidentialStatus;
    $isset=true;
    if(Input::has("1")){
        $input_NumberFromAppinfo = Input::get("1");
        $input_NumberFromAppinfo = \BLL\DataModel\DataType::getValueFromString("Int", $v);
    }else{
        $isset=false;
    }
    $attrs["NumberFromAppinfo"]=$input_NumberFromAppinfo;
    $$obj2 = new AppModel\Application\Applicant();
    $$obj2->ContactID = uniqid();
    $attrs = array();
    $isset=true;
    if(Input::has("Hardship1")){
        $input_credit_hardship = Input::get("Hardship1");
    }else{
        $isset=false;
    }
    $attrs["credit_hardship"]=$input_credit_hardship;
    $isset=true;
    if(Input::has("Gambling1")){
        $input_credit_gambling = Input::get("Gambling1");
    }else{
        $isset=false;
    }
    $attrs["credit_gambling"]=$input_credit_gambling;
    $isset=true;
    if(Input::has("FiveYears1")){
        $input_credit_claims = Input::get("FiveYears1");
    }else{
        $isset=false;
    }
    $attrs["credit_claims"]=$input_credit_claims;
    $isset=true;
    if(Input::has("CreditHistory1")){
        $input_credit_history = Input::get("CreditHistory1");
    }else{
        $isset=false;
    }
    $attrs["credit_history"]=$input_credit_history;
    $isset=true;
    if(Input::has("totalOutstanding1")){
        $input_credit_outstanding = toNum(Input::get("totalOutstanding1"));
    }else{
        $isset=false;
    }
    $attrs["credit_outstanding"]=$input_credit_outstanding;
    $isset=true;
    if(Input::has("DateOfDischarge1")){
        $input_credit_dischargedate = Input::get("DateOfDischarge1");
        $input_credit_dischargedate = \BLL\DataModel\DataType::getValueFromString("Date", $v);
    }else{
        $isset=false;
    }
    $attrs["credit_dischargedate"]=$input_credit_dischargedate;
    $isset=true;
    if(Input::has("DefaultAfterDischarge1")){
        $input_credit_discharge = Input::get("DefaultAfterDischarge1");
    }else{
        $isset=false;
    }
    $attrs["credit_discharge"]=$input_credit_discharge;
    $$obj3 = new AppModel\Application\Applicant\Credit();
    $$obj3->appcredit_id = uniqid();
    $attrs = array();
    $isset=true;
    if(Input::has("TypeOfEmployment1")){
        $input_employment_status = Input::get("TypeOfEmployment1");
    }else{
        $isset=false;
    }
    $attrs["employment_status"]=$input_employment_status;
    $isset=true;
    if(Input::has("TOE1")){
        $input_employment_type = Input::get("TOE1");
    }else{
        $isset=false;
    }
    $attrs["employment_type"]=$input_employment_type;
    $isset=true;
    if(Input::has("TitleInOccupation1")){
        $input_employment_occupation = Input::get("TitleInOccupation1");
    }else{
        $isset=false;
    }
    $attrs["employment_occupation"]=$input_employment_occupation;
    $isset=true;
    if(Input::has("BusinessName1")){
        $input_employer_name = Input::get("BusinessName1");
    }else{
        $isset=false;
    }
    $attrs["employer_name"]=$input_employer_name;
    $isset=true;
    if(Input::has("WorkPhone1")){
        $input_employer_phone = Input::get("WorkPhone1");
    }else{
        $isset=false;
    }
    $attrs["employer_phone"]=$input_employer_phone;
    $$obj3 = new AppModel\Application\Applicant\Employment();
    $$obj3->appemployment_id = uniqid();
    $attrs = array();
    $isset=true;
    if(Input::has("IncomeAfterTax1")){
        $input_income_aftertax = toNum(Input::get("IncomeAfterTax1"));
        $input_income_aftertax = \BLL\DataModel\DataType::getValueFromString("Int", $v);
    }else{
        $isset=false;
    }
    $attrs["income_aftertax"]=$input_income_aftertax;
    $isset=true;
    if(Input::has("IncomeAfterTax1Period")){
        $input_income_aftertax_period = Input::get("IncomeAfterTax1Period");
    }else{
        $isset=false;
    }
    $attrs["income_aftertax_period"]=$input_income_aftertax_period;
    $isset=true;
    if(Input::has("CentrelinkIncome1")){
        $input_income_centrelink = Input::get("CentrelinkIncome1");
        $input_income_centrelink = \BLL\DataModel\DataType::getValueFromString("Int", $v);
    }else{
        $isset=false;
    }
    $attrs["income_centrelink"]=$input_income_centrelink;
    $isset=true;
    if(Input::has("RentalIncome1")){
        $input_income_other = Input::get("RentalIncome1");
        $input_income_other = \BLL\DataModel\DataType::getValueFromString("Int", $v);
    }else{
        $isset=false;
    }
    $attrs["income_other"]=$input_income_other;
    $isset=true;
    if(Input::has("OtherIncomePeriod1")){
        $input_income_other_period = Input::get("OtherIncomePeriod1");
    }else{
        $isset=false;
    }
    $attrs["income_other_period"]=$input_income_other_period;
    $isset=true;
    if(Input::has("RentalIncome1")){
        $input_income_rental = Input::get("RentalIncome1");
    }else{
        $isset=false;
    }
    $attrs["income_rental"]=$input_income_rental;
    $isset=true;
    if(Input::has("IncomeTotal1")){
        $input_income_total = Input::get("IncomeTotal1");
    }else{
        $isset=false;
    }
    $attrs["income_total"]=$input_income_total;
    $isset=true;
    if(Input::has("OtherIncomeSpecify1")){
        $input_OtherIncomeSpecify = Input::get("OtherIncomeSpecify1");
    }else{
        $isset=false;
    }
    $attrs["OtherIncomeSpecify"]=$input_OtherIncomeSpecify;
    $$obj3 = new AppModel\Application\Applicant\Income();
    $$obj3->appincome_id = uniqid();
    $attrs = array();
    $isset=true;
    if(Input::has("FirstName2")){
        $input_FirstName = cleanStr(Input::get("FirstName2"));
    }else{
        $isset=false;
    }
    $attrs["FirstName"]=$input_FirstName;
    $isset=true;
    if(Input::has("MiddleName2")){
        $input_MiddleName = cleanStr(Input::get("MiddleName2"));
    }else{
        $isset=false;
    }
    $attrs["MiddleName"]=$input_MiddleName;
    $isset=true;
    if(Input::has("SurName2")){
        $input_SurName = cleanStr(Input::get("SurName2"));
    }else{
        $isset=false;
    }
    $attrs["SurName"]=$input_SurName;
    $isset=true;
    if(Input::has("Title2")){
        $input_Title = cleanStr(Input::get("Title2"));
    }else{
        $isset=false;
    }
    $attrs["Title"]=$input_Title;
    $isset=true;
    if(Input::has("Title!!2")){
        $input_Gender = getGender(Input::get("Title!!2"));
    }else{
        $isset=false;
    }
    $attrs["Gender"]=$input_Gender;
    $isset=true;
    if(Input::has("Mobile2")){
        $input_Mobile = Input::get("Mobile2");
    }else{
        $isset=false;
    }
    $attrs["Mobile"]=$input_Mobile;
    $isset=true;
    if(Input::has("Phone2")){
        $input_HomePhone = Input::get("Phone2");
    }else{
        $isset=false;
    }
    $attrs["HomePhone"]=$input_HomePhone;
    $isset=true;
    if(Input::has("EMailAddress2")){
        $input_Email = cleanStr(Input::get("EMailAddress2"));
    }else{
        $isset=false;
    }
    $attrs["Email"]=$input_Email;
    $isset=true;
    if(Input::has("DriverLicense2")){
        $input_DriverLicense = Input::get("DriverLicense2");
    }else{
        $isset=false;
    }
    $attrs["DriverLicense"]=$input_DriverLicense;
    $isset=true;
    if(Input::has("Residency2")){
        $input_Citizenship = Input::get("Residency2");
    }else{
        $isset=false;
    }
    $attrs["Citizenship"]=$input_Citizenship;
    $isset=true;
    if(Input::has("DateOfBirth2")){
        $input_DateBirth = Input::get("DateOfBirth2");
        $input_DateBirth = \BLL\DataModel\DataType::getValueFromString("Date", $v);
    }else{
        $isset=false;
    }
    $attrs["DateBirth"]=$input_DateBirth;
    $isset=true;
    if(Input::has("ResidentialAddress2")){
        $input_StreetNo = getStreetNoFromAddress(Input::get("ResidentialAddress2"));
    }else{
        $isset=false;
    }
    $attrs["StreetNo"]=$input_StreetNo;
    $isset=true;
    if(Input::has("ResidentialAddress2")){
        $input_Street = getStreetFromAddress(Input::get("ResidentialAddress2"));
    }else{
        $isset=false;
    }
    $attrs["Street"]=$input_Street;
    $isset=true;
    if(Input::has("State2")){
        $input_State = Input::get("State2");
    }else{
        $isset=false;
    }
    $attrs["State"]=$input_State;
    $isset=true;
    if(Input::has("Postcode2")){
        $input_PostCode = Input::get("Postcode2");
    }else{
        $isset=false;
    }
    $attrs["PostCode"]=$input_PostCode;
    $isset=true;
    if(Input::has("ResidentialStatus2")){
        $input_app_ResidentialStatus = Input::get("ResidentialStatus2");
    }else{
        $isset=false;
    }
    $attrs["app_ResidentialStatus"]=$input_app_ResidentialStatus;
    $isset=true;
    if(Input::has("2")){
        $input_NumberFromAppinfo = Input::get("2");
        $input_NumberFromAppinfo = \BLL\DataModel\DataType::getValueFromString("Int", $v);
    }else{
        $isset=false;
    }
    $attrs["NumberFromAppinfo"]=$input_NumberFromAppinfo;
    $$obj2 = new AppModel\Application\Applicant();
    $$obj2->ContactID = uniqid();
    $attrs = array();
    $isset=true;
    if(Input::has("Hardship2")){
        $input_credit_hardship = Input::get("Hardship2");
    }else{
        $isset=false;
    }
    $attrs["credit_hardship"]=$input_credit_hardship;
    $isset=true;
    if(Input::has("Gambling2")){
        $input_credit_gambling = Input::get("Gambling2");
    }else{
        $isset=false;
    }
    $attrs["credit_gambling"]=$input_credit_gambling;
    $isset=true;
    if(Input::has("FiveYears2")){
        $input_credit_claims = Input::get("FiveYears2");
    }else{
        $isset=false;
    }
    $attrs["credit_claims"]=$input_credit_claims;
    $isset=true;
    if(Input::has("CreditHistory2")){
        $input_credit_history = Input::get("CreditHistory2");
    }else{
        $isset=false;
    }
    $attrs["credit_history"]=$input_credit_history;
    $isset=true;
    if(Input::has("totalOutstanding2")){
        $input_credit_outstanding = toNum(Input::get("totalOutstanding2"));
    }else{
        $isset=false;
    }
    $attrs["credit_outstanding"]=$input_credit_outstanding;
    $isset=true;
    if(Input::has("DateOfDischarge2")){
        $input_credit_dischargedate = Input::get("DateOfDischarge2");
        $input_credit_dischargedate = \BLL\DataModel\DataType::getValueFromString("Date", $v);
    }else{
        $isset=false;
    }
    $attrs["credit_dischargedate"]=$input_credit_dischargedate;
    $isset=true;
    if(Input::has("DefaultAfterDischarge2")){
        $input_credit_discharge = Input::get("DefaultAfterDischarge2");
    }else{
        $isset=false;
    }
    $attrs["credit_discharge"]=$input_credit_discharge;
    $$obj3 = new AppModel\Application\Applicant\Credit();
    $$obj3->appcredit_id = uniqid();
    $attrs = array();
    $isset=true;
    if(Input::has("TypeOfEmployment2")){
        $input_employment_status = Input::get("TypeOfEmployment2");
    }else{
        $isset=false;
    }
    $attrs["employment_status"]=$input_employment_status;
    $isset=true;
    if(Input::has("TOE2")){
        $input_employment_type = Input::get("TOE2");
    }else{
        $isset=false;
    }
    $attrs["employment_type"]=$input_employment_type;
    $isset=true;
    if(Input::has("TitleInOccupation2")){
        $input_employment_occupation = Input::get("TitleInOccupation2");
    }else{
        $isset=false;
    }
    $attrs["employment_occupation"]=$input_employment_occupation;
    $isset=true;
    if(Input::has("BusinessName2")){
        $input_employer_name = Input::get("BusinessName2");
    }else{
        $isset=false;
    }
    $attrs["employer_name"]=$input_employer_name;
    $isset=true;
    if(Input::has("WorkPhone2")){
        $input_employer_phone = Input::get("WorkPhone2");
    }else{
        $isset=false;
    }
    $attrs["employer_phone"]=$input_employer_phone;
    $$obj3 = new AppModel\Application\Applicant\Employment();
    $$obj3->appemployment_id = uniqid();
    $attrs = array();
    $isset=true;
    if(Input::has("IncomeAfterTax2")){
        $input_income_aftertax = toNum(Input::get("IncomeAfterTax2"));
        $input_income_aftertax = \BLL\DataModel\DataType::getValueFromString("Int", $v);
    }else{
        $isset=false;
    }
    $attrs["income_aftertax"]=$input_income_aftertax;
    $isset=true;
    if(Input::has("IncomeAfterTax2Period")){
        $input_income_aftertax_period = Input::get("IncomeAfterTax2Period");
    }else{
        $isset=false;
    }
    $attrs["income_aftertax_period"]=$input_income_aftertax_period;
    $isset=true;
    if(Input::has("CentrelinkIncome2")){
        $input_income_centrelink = Input::get("CentrelinkIncome2");
        $input_income_centrelink = \BLL\DataModel\DataType::getValueFromString("Int", $v);
    }else{
        $isset=false;
    }
    $attrs["income_centrelink"]=$input_income_centrelink;
    $isset=true;
    if(Input::has("RentalIncome2")){
        $input_income_other = Input::get("RentalIncome2");
        $input_income_other = \BLL\DataModel\DataType::getValueFromString("Int", $v);
    }else{
        $isset=false;
    }
    $attrs["income_other"]=$input_income_other;
    $isset=true;
    if(Input::has("OtherIncomePeriod2")){
        $input_income_other_period = Input::get("OtherIncomePeriod2");
    }else{
        $isset=false;
    }
    $attrs["income_other_period"]=$input_income_other_period;
    $isset=true;
    if(Input::has("RentalIncome2")){
        $input_income_rental = Input::get("RentalIncome2");
    }else{
        $isset=false;
    }
    $attrs["income_rental"]=$input_income_rental;
    $isset=true;
    if(Input::has("IncomeTotal2")){
        $input_income_total = Input::get("IncomeTotal2");
    }else{
        $isset=false;
    }
    $attrs["income_total"]=$input_income_total;
    $isset=true;
    if(Input::has("OtherIncomeSpecify2")){
        $input_OtherIncomeSpecify = Input::get("OtherIncomeSpecify2");
    }else{
        $isset=false;
    }
    $attrs["OtherIncomeSpecify"]=$input_OtherIncomeSpecify;
    $$obj3 = new AppModel\Application\Applicant\Income();
    $$obj3->appincome_id = uniqid();
    $attrs = array();
    $$obj2 = new AppModel\Application\Liability();
    $$obj2->liabilities_id = uniqid();
    $attrs = array();
    $isset=true;
    if(Input::has("OtherLoan1")){
        $input_liabilities_type = Input::get("OtherLoan1");
    }else{
        $isset=false;
    }
    $attrs["liabilities_type"]=$input_liabilities_type;
    $attrs["liabilities_loanrepayment_payment"]=$input_liabilities_loanrepayment_payment;
    $isset=true;
    if(Input::has("OtherLoanBank1")){
        $input_liabilities_bank = Input::get("OtherLoanBank1");
    }else{
        $isset=false;
    }
    $attrs["liabilities_bank"]=$input_liabilities_bank;
    $$p0 = 'Y-m-d';
    if($isset){
        $input_liabilities_paidoffdate =date($p0);
    }
    $attrs["liabilities_paidoffdate"]=$input_liabilities_paidoffdate;
    $$obj2 = new AppModel\Application\Liability();
    $$obj2->liabilities_id = uniqid();
    $attrs = array();
    $isset=true;
    if(Input::has("OtherLoan2")){
        $input_liabilities_type = Input::get("OtherLoan2");
    }else{
        $isset=false;
    }
    $attrs["liabilities_type"]=$input_liabilities_type;
    $attrs["liabilities_loanrepayment_payment"]=$input_liabilities_loanrepayment_payment;
    $isset=true;
    if(Input::has("OtherLoanBank2")){
        $input_liabilities_bank = Input::get("OtherLoanBank2");
    }else{
        $isset=false;
    }
    $attrs["liabilities_bank"]=$input_liabilities_bank;
    $$p0 = 'Y-m-d';
    if($isset){
        $input_liabilities_paidoffdate =date($p0);
    }
    $attrs["liabilities_paidoffdate"]=$input_liabilities_paidoffdate;
    $$obj2 = new AppModel\Application\Liability();
    $$obj2->liabilities_id = uniqid();
    $attrs = array();
    $isset=true;
    if(Input::has("OtherLoan3")){
        $input_liabilities_type = Input::get("OtherLoan3");
    }else{
        $isset=false;
    }
    $attrs["liabilities_type"]=$input_liabilities_type;
    $attrs["liabilities_loanrepayment_payment"]=$input_liabilities_loanrepayment_payment;
    $isset=true;
    if(Input::has("OtherLoanBank3")){
        $input_liabilities_bank = Input::get("OtherLoanBank3");
    }else{
        $isset=false;
    }
    $attrs["liabilities_bank"]=$input_liabilities_bank;
    $$p0 = 'Y-m-d';
    if($isset){
        $input_liabilities_paidoffdate =date($p0);
    }
    $attrs["liabilities_paidoffdate"]=$input_liabilities_paidoffdate;
    $$obj2 = new AppModel\Application\Liability();
    $$obj2->liabilities_id = uniqid();
    $attrs = array();
    $isset=true;
    if(Input::has("OtherLoan4")){
        $input_liabilities_type = Input::get("OtherLoan4");
    }else{
        $isset=false;
    }
    $attrs["liabilities_type"]=$input_liabilities_type;
    $attrs["liabilities_loanrepayment_payment"]=$input_liabilities_loanrepayment_payment;
    $isset=true;
    if(Input::has("OtherLoanBank4")){
        $input_liabilities_bank = Input::get("OtherLoanBank4");
    }else{
        $isset=false;
    }
    $attrs["liabilities_bank"]=$input_liabilities_bank;
    $$p0 = 'Y-m-d';
    if($isset){
        $input_liabilities_paidoffdate =date($p0);
    }
    $attrs["liabilities_paidoffdate"]=$input_liabilities_paidoffdate;
    $$obj2 = new AppModel\Application\Liability();
    $$obj2->liabilities_id = uniqid();
    $attrs = array();
    $isset=true;
    if(Input::has("OtherLoan5")){
        $input_liabilities_type = Input::get("OtherLoan5");
    }else{
        $isset=false;
    }
    $attrs["liabilities_type"]=$input_liabilities_type;
    $attrs["liabilities_loanrepayment_payment"]=$input_liabilities_loanrepayment_payment;
    $isset=true;
    if(Input::has("OtherLoanBank5")){
        $input_liabilities_bank = Input::get("OtherLoanBank5");
    }else{
        $isset=false;
    }
    $attrs["liabilities_bank"]=$input_liabilities_bank;
    $$p0 = 'Y-m-d';
    if($isset){
        $input_liabilities_paidoffdate =date($p0);
    }
    $attrs["liabilities_paidoffdate"]=$input_liabilities_paidoffdate;
    $$obj2 = new AppModel\Application\Liability();
    $$obj2->liabilities_id = uniqid();
    $attrs = array();
    $isset=true;
    if(Input::has("OtherLoan6")){
        $input_liabilities_type = Input::get("OtherLoan6");
    }else{
        $isset=false;
    }
    $attrs["liabilities_type"]=$input_liabilities_type;
    $attrs["liabilities_loanrepayment_payment"]=$input_liabilities_loanrepayment_payment;
    $isset=true;
    if(Input::has("OtherLoanBank6")){
        $input_liabilities_bank = Input::get("OtherLoanBank6");
    }else{
        $isset=false;
    }
    $attrs["liabilities_bank"]=$input_liabilities_bank;
    $$p0 = 'Y-m-d';
    if($isset){
        $input_liabilities_paidoffdate =date($p0);
    }
    $attrs["liabilities_paidoffdate"]=$input_liabilities_paidoffdate;
    $$obj2 = new AppModel\Application\Liability();
    $$obj2->liabilities_id = uniqid();
    $attrs = array();
    $input_liabilities_type = 'Mortgage1';
    $attrs["liabilities_type"]=$input_liabilities_type;
    $attrs["liabilities_loanrepayment_payment"]=$input_liabilities_loanrepayment_payment;
    $isset=true;
    if(Input::has("Property1Bank")){
        $input_liabilities_bank = Input::get("Property1Bank");
    }else{
        $isset=false;
    }
    $attrs["liabilities_bank"]=$input_liabilities_bank;
    $$p0 = 'Y-m-d';
    if($isset){
        $input_liabilities_paidoffdate =date($p0);
    }
    $attrs["liabilities_paidoffdate"]=$input_liabilities_paidoffdate;
    $$obj2 = new AppModel\Application\Liability();
    $$obj2->liabilities_id = uniqid();
    $attrs = array();
    $input_liabilities_type = 'Mortgage2';
    $attrs["liabilities_type"]=$input_liabilities_type;
    $attrs["liabilities_loanrepayment_payment"]=$input_liabilities_loanrepayment_payment;
    $isset=true;
    if(Input::has("Property2Bank")){
        $input_liabilities_bank = Input::get("Property2Bank");
    }else{
        $isset=false;
    }
    $attrs["liabilities_bank"]=$input_liabilities_bank;
    $$p0 = 'Y-m-d';
    if($isset){
        $input_liabilities_paidoffdate =date($p0);
    }
    $attrs["liabilities_paidoffdate"]=$input_liabilities_paidoffdate;
    $$obj2 = new AppModel\Application\Liability();
    $$obj2->liabilities_id = uniqid();
    $attrs = array();
    $input_liabilities_type = 'Mortgage3';
    $attrs["liabilities_type"]=$input_liabilities_type;
    $attrs["liabilities_loanrepayment_payment"]=$input_liabilities_loanrepayment_payment;
    $isset=true;
    if(Input::has("Property3Bank")){
        $input_liabilities_bank = Input::get("Property3Bank");
    }else{
        $isset=false;
    }
    $attrs["liabilities_bank"]=$input_liabilities_bank;
    $$p0 = 'Y-m-d';
    if($isset){
        $input_liabilities_paidoffdate =date($p0);
    }
    $attrs["liabilities_paidoffdate"]=$input_liabilities_paidoffdate;
    $$obj2 = new AppModel\Application\Liability();
    $$obj2->liabilities_id = uniqid();
    $attrs = array();
    $input_liabilities_type = 'Mortgage4';
    $attrs["liabilities_type"]=$input_liabilities_type;
    $attrs["liabilities_loanrepayment_payment"]=$input_liabilities_loanrepayment_payment;
    $isset=true;
    if(Input::has("Property4Bank")){
        $input_liabilities_bank = Input::get("Property4Bank");
    }else{
        $isset=false;
    }
    $attrs["liabilities_bank"]=$input_liabilities_bank;
    $$p0 = 'Y-m-d';
    if($isset){
        $input_liabilities_paidoffdate =date($p0);
    }
    $attrs["liabilities_paidoffdate"]=$input_liabilities_paidoffdate;
    $$obj2 = new AppModel\Application\Liability();
    $$obj2->liabilities_id = uniqid();
    $attrs = array();
    $input_liabilities_type = 'Mortgage5';
    $attrs["liabilities_type"]=$input_liabilities_type;
    $attrs["liabilities_loanrepayment_payment"]=$input_liabilities_loanrepayment_payment;
    $isset=true;
    if(Input::has("Property5Bank")){
        $input_liabilities_bank = Input::get("Property5Bank");
    }else{
        $isset=false;
    }
    $attrs["liabilities_bank"]=$input_liabilities_bank;
    $$p0 = 'Y-m-d';
    if($isset){
        $input_liabilities_paidoffdate =date($p0);
    }
    $attrs["liabilities_paidoffdate"]=$input_liabilities_paidoffdate;
    $$obj2 = new AppModel\Application\Liability();
    $$obj2->liabilities_id = uniqid();
    $attrs = array();
    $input_liabilities_type = 'Mortgage6';
    $attrs["liabilities_type"]=$input_liabilities_type;
    $attrs["liabilities_loanrepayment_payment"]=$input_liabilities_loanrepayment_payment;
    $isset=true;
    if(Input::has("Property6Bank")){
        $input_liabilities_bank = Input::get("Property6Bank");
    }else{
        $isset=false;
    }
    $attrs["liabilities_bank"]=$input_liabilities_bank;
    $$p0 = 'Y-m-d';
    if($isset){
        $input_liabilities_paidoffdate =date($p0);
    }
    $attrs["liabilities_paidoffdate"]=$input_liabilities_paidoffdate;
    $$obj2 = new AppModel\Application\Liability();
    $$obj2->liabilities_id = uniqid();
    $attrs = array();
    $input_liabilities_type = 'Loan for Vehicle1';
    $attrs["liabilities_type"]=$input_liabilities_type;
    $attrs["liabilities_loanrepayment_payment"]=$input_liabilities_loanrepayment_payment;
    $isset=true;
    if(Input::has("v1Lender")){
        $input_liabilities_bank = Input::get("v1Lender");
    }else{
        $isset=false;
    }
    $attrs["liabilities_bank"]=$input_liabilities_bank;
    $$p0 = 'Y-m-d';
    if($isset){
        $input_liabilities_paidoffdate =date($p0);
    }
    $attrs["liabilities_paidoffdate"]=$input_liabilities_paidoffdate;
    $$obj2 = new AppModel\Application\Liability();
    $$obj2->liabilities_id = uniqid();
    $attrs = array();
    $input_liabilities_type = 'Loan for Vehicle2';
    $attrs["liabilities_type"]=$input_liabilities_type;
    $attrs["liabilities_loanrepayment_payment"]=$input_liabilities_loanrepayment_payment;
    $isset=true;
    if(Input::has("v2Lender")){
        $input_liabilities_bank = Input::get("v2Lender");
    }else{
        $isset=false;
    }
    $attrs["liabilities_bank"]=$input_liabilities_bank;
    $$p0 = 'Y-m-d';
    if($isset){
        $input_liabilities_paidoffdate =date($p0);
    }
    $attrs["liabilities_paidoffdate"]=$input_liabilities_paidoffdate;
    $$obj2 = new AppModel\Application\Liability();
    $$obj2->liabilities_id = uniqid();
    $attrs = array();
    $input_liabilities_type = 'Loan for Vehicle3';
    $attrs["liabilities_type"]=$input_liabilities_type;
    $attrs["liabilities_loanrepayment_payment"]=$input_liabilities_loanrepayment_payment;
    $isset=true;
    if(Input::has("v3Lender")){
        $input_liabilities_bank = Input::get("v3Lender");
    }else{
        $isset=false;
    }
    $attrs["liabilities_bank"]=$input_liabilities_bank;
    $$p0 = 'Y-m-d';
    if($isset){
        $input_liabilities_paidoffdate =date($p0);
    }
    $attrs["liabilities_paidoffdate"]=$input_liabilities_paidoffdate;
    $$obj2 = new AppModel\Application\Liability();
    $$obj2->liabilities_id = uniqid();
    $attrs = array();
    $input_liabilities_type = 'Loan for Vehicle4';
    $attrs["liabilities_type"]=$input_liabilities_type;
    $attrs["liabilities_loanrepayment_payment"]=$input_liabilities_loanrepayment_payment;
    $isset=true;
    if(Input::has("v4Lender")){
        $input_liabilities_bank = Input::get("v4Lender");
    }else{
        $isset=false;
    }
    $attrs["liabilities_bank"]=$input_liabilities_bank;
    $$p0 = 'Y-m-d';
    if($isset){
        $input_liabilities_paidoffdate =date($p0);
    }
    $attrs["liabilities_paidoffdate"]=$input_liabilities_paidoffdate;
    $$obj2 = new AppModel\Application\Liability();
    $$obj2->liabilities_id = uniqid();
    $attrs = array();
    $input_liabilities_type = 'Loan for Vehicle5';
    $attrs["liabilities_type"]=$input_liabilities_type;
    $attrs["liabilities_loanrepayment_payment"]=$input_liabilities_loanrepayment_payment;
    $isset=true;
    if(Input::has("v5Lender")){
        $input_liabilities_bank = Input::get("v5Lender");
    }else{
        $isset=false;
    }
    $attrs["liabilities_bank"]=$input_liabilities_bank;
    $$p0 = 'Y-m-d';
    if($isset){
        $input_liabilities_paidoffdate =date($p0);
    }
    $attrs["liabilities_paidoffdate"]=$input_liabilities_paidoffdate;
    $$obj2 = new AppModel\Application\Liability();
    $$obj2->liabilities_id = uniqid();
    $attrs = array();
    $input_liabilities_type = 'Loan for Vehicle6';
    $attrs["liabilities_type"]=$input_liabilities_type;
    $attrs["liabilities_loanrepayment_payment"]=$input_liabilities_loanrepayment_payment;
    $isset=true;
    if(Input::has("v6Lender")){
        $input_liabilities_bank = Input::get("v6Lender");
    }else{
        $isset=false;
    }
    $attrs["liabilities_bank"]=$input_liabilities_bank;
    $$p0 = 'Y-m-d';
    if($isset){
        $input_liabilities_paidoffdate =date($p0);
    }
    $attrs["liabilities_paidoffdate"]=$input_liabilities_paidoffdate;
    $$obj2 = new AppModel\Application\Liability();
    $$obj2->liabilities_id = uniqid();
    $attrs = array();
    $isset=true;
    if(Input::has("Property1Address")){
        $input_Address = Input::get("Property1Address");
    }else{
        $isset=false;
    }
    $attrs["Address"]=$input_Address;
    $isset=true;
    if(Input::has("morarr1")){
        $input_Arrears = Input::get("morarr1");
    }else{
        $isset=false;
    }
    $attrs["Arrears"]=$input_Arrears;
    $isset=true;
    if(Input::has("Property1Owner")){
        $input_Owner = cleanStr(Input::get("Property1Owner"));
    }else{
        $isset=false;
    }
    $attrs["Owner"]=$input_Owner;
    $isset=true;
    if(Input::has("Property1Type")){
        $input_PropertyType = cleanStr(Input::get("Property1Type"));
    }else{
        $isset=false;
    }
    $attrs["PropertyType"]=$input_PropertyType;
    $isset=true;
    if(Input::has("Property1Description")){
        $input_Description = Input::get("Property1Description");
    }else{
        $isset=false;
    }
    $attrs["Description"]=$input_Description;
    $isset=true;
    if(Input::has("Property1LandSize")){
        $input_LandSize = Input::get("Property1LandSize");
    }else{
        $isset=false;
    }
    $attrs["LandSize"]=$input_LandSize;
    $isset=true;
    if(Input::has("Property1Bedrooms")){
        $input_Bedroom = Input::get("Property1Bedrooms");
    }else{
        $isset=false;
    }
    $attrs["Bedroom"]=$input_Bedroom;
    $isset=true;
    if(Input::has("Property1Bathrooms")){
        $input_Bathroom = Input::get("Property1Bathrooms");
    }else{
        $isset=false;
    }
    $attrs["Bathroom"]=$input_Bathroom;
    $isset=true;
    if(Input::has("Property1Debt1st")){
        $input_MortgageOwing = toNum(Input::get("Property1Debt1st"));
    }else{
        $isset=false;
    }
    $attrs["MortgageOwing"]=$input_MortgageOwing;
    $attrs["MortgagePayment"]=$input_MortgagePayment;
    $isset=true;
    if(Input::has("Property1Bank")){
        $input_MortgageLender = Input::get("Property1Bank");
    }else{
        $isset=false;
    }
    $attrs["MortgageLender"]=$input_MortgageLender;
    $isset=true;
    if(Input::has("Property1Value")){
        $input_PropertyValue = toNum(Input::get("Property1Value"));
        $input_PropertyValue = \BLL\DataModel\DataType::getValueFromString("BigInt", $v);
    }else{
        $isset=false;
    }
    $attrs["PropertyValue"]=$input_PropertyValue;
    $isset=true;
    if(Input::has("Property1OtherMortgageValue1")){
        $input_OtherMortgageValue1 = toNum(Input::get("Property1OtherMortgageValue1"));
    }else{
        $isset=false;
    }
    $attrs["OtherMortgageValue1"]=$input_OtherMortgageValue1;
    $isset=true;
    if(Input::has("Property1OtherMortgageType1")){
        $input_OtherMortgageType1 = Input::get("Property1OtherMortgageType1");
    }else{
        $isset=false;
    }
    $attrs["OtherMortgageType1"]=$input_OtherMortgageType1;
    $isset=true;
    if(Input::has("Property1OtherMortgageValue2")){
        $input_OtherMortgageValue2 = toNum(Input::get("Property1OtherMortgageValue2"));
    }else{
        $isset=false;
    }
    $attrs["OtherMortgageValue2"]=$input_OtherMortgageValue2;
    $isset=true;
    if(Input::has("Property1OtherMortgageType2")){
        $input_OtherMortgageType2 = Input::get("Property1OtherMortgageType2");
    }else{
        $isset=false;
    }
    $attrs["OtherMortgageType2"]=$input_OtherMortgageType2;
    $$obj2 = new AppModel\Application\Property();
    $$obj2->PropertyID = uniqid();
    $attrs = array();
    $isset=true;
    if(Input::has("Property2Address")){
        $input_Address = Input::get("Property2Address");
    }else{
        $isset=false;
    }
    $attrs["Address"]=$input_Address;
    $isset=true;
    if(Input::has("morarr2")){
        $input_Arrears = Input::get("morarr2");
    }else{
        $isset=false;
    }
    $attrs["Arrears"]=$input_Arrears;
    $isset=true;
    if(Input::has("Property2Owner")){
        $input_Owner = cleanStr(Input::get("Property2Owner"));
    }else{
        $isset=false;
    }
    $attrs["Owner"]=$input_Owner;
    $isset=true;
    if(Input::has("Property2Type")){
        $input_PropertyType = cleanStr(Input::get("Property2Type"));
    }else{
        $isset=false;
    }
    $attrs["PropertyType"]=$input_PropertyType;
    $isset=true;
    if(Input::has("Property2Description")){
        $input_Description = Input::get("Property2Description");
    }else{
        $isset=false;
    }
    $attrs["Description"]=$input_Description;
    $isset=true;
    if(Input::has("Property2LandSize")){
        $input_LandSize = Input::get("Property2LandSize");
    }else{
        $isset=false;
    }
    $attrs["LandSize"]=$input_LandSize;
    $isset=true;
    if(Input::has("Property2Bedrooms")){
        $input_Bedroom = Input::get("Property2Bedrooms");
    }else{
        $isset=false;
    }
    $attrs["Bedroom"]=$input_Bedroom;
    $isset=true;
    if(Input::has("Property2Bathrooms")){
        $input_Bathroom = Input::get("Property2Bathrooms");
    }else{
        $isset=false;
    }
    $attrs["Bathroom"]=$input_Bathroom;
    $isset=true;
    if(Input::has("Property2Debt1st")){
        $input_MortgageOwing = toNum(Input::get("Property2Debt1st"));
    }else{
        $isset=false;
    }
    $attrs["MortgageOwing"]=$input_MortgageOwing;
    $attrs["MortgagePayment"]=$input_MortgagePayment;
    $isset=true;
    if(Input::has("Property2Bank")){
        $input_MortgageLender = Input::get("Property2Bank");
    }else{
        $isset=false;
    }
    $attrs["MortgageLender"]=$input_MortgageLender;
    $isset=true;
    if(Input::has("Property2Value")){
        $input_PropertyValue = toNum(Input::get("Property2Value"));
        $input_PropertyValue = \BLL\DataModel\DataType::getValueFromString("BigInt", $v);
    }else{
        $isset=false;
    }
    $attrs["PropertyValue"]=$input_PropertyValue;
    $isset=true;
    if(Input::has("Property2OtherMortgageValue1")){
        $input_OtherMortgageValue1 = toNum(Input::get("Property2OtherMortgageValue1"));
    }else{
        $isset=false;
    }
    $attrs["OtherMortgageValue1"]=$input_OtherMortgageValue1;
    $isset=true;
    if(Input::has("Property2OtherMortgageType1")){
        $input_OtherMortgageType1 = Input::get("Property2OtherMortgageType1");
    }else{
        $isset=false;
    }
    $attrs["OtherMortgageType1"]=$input_OtherMortgageType1;
    $isset=true;
    if(Input::has("Property2OtherMortgageValue2")){
        $input_OtherMortgageValue2 = toNum(Input::get("Property2OtherMortgageValue2"));
    }else{
        $isset=false;
    }
    $attrs["OtherMortgageValue2"]=$input_OtherMortgageValue2;
    $isset=true;
    if(Input::has("Property2OtherMortgageType2")){
        $input_OtherMortgageType2 = Input::get("Property2OtherMortgageType2");
    }else{
        $isset=false;
    }
    $attrs["OtherMortgageType2"]=$input_OtherMortgageType2;
    $$obj2 = new AppModel\Application\Property();
    $$obj2->PropertyID = uniqid();
    $attrs = array();
    $isset=true;
    if(Input::has("Property3Address")){
        $input_Address = Input::get("Property3Address");
    }else{
        $isset=false;
    }
    $attrs["Address"]=$input_Address;
    $isset=true;
    if(Input::has("morarr3")){
        $input_Arrears = Input::get("morarr3");
    }else{
        $isset=false;
    }
    $attrs["Arrears"]=$input_Arrears;
    $isset=true;
    if(Input::has("Property3Owner")){
        $input_Owner = cleanStr(Input::get("Property3Owner"));
    }else{
        $isset=false;
    }
    $attrs["Owner"]=$input_Owner;
    $isset=true;
    if(Input::has("Property3Type")){
        $input_PropertyType = cleanStr(Input::get("Property3Type"));
    }else{
        $isset=false;
    }
    $attrs["PropertyType"]=$input_PropertyType;
    $isset=true;
    if(Input::has("Property3Description")){
        $input_Description = Input::get("Property3Description");
    }else{
        $isset=false;
    }
    $attrs["Description"]=$input_Description;
    $isset=true;
    if(Input::has("Property3LandSize")){
        $input_LandSize = Input::get("Property3LandSize");
    }else{
        $isset=false;
    }
    $attrs["LandSize"]=$input_LandSize;
    $isset=true;
    if(Input::has("Property3Bedrooms")){
        $input_Bedroom = Input::get("Property3Bedrooms");
    }else{
        $isset=false;
    }
    $attrs["Bedroom"]=$input_Bedroom;
    $isset=true;
    if(Input::has("Property3Bathrooms")){
        $input_Bathroom = Input::get("Property3Bathrooms");
    }else{
        $isset=false;
    }
    $attrs["Bathroom"]=$input_Bathroom;
    $isset=true;
    if(Input::has("Property3Debt1st")){
        $input_MortgageOwing = toNum(Input::get("Property3Debt1st"));
    }else{
        $isset=false;
    }
    $attrs["MortgageOwing"]=$input_MortgageOwing;
    $attrs["MortgagePayment"]=$input_MortgagePayment;
    $isset=true;
    if(Input::has("Property3Bank")){
        $input_MortgageLender = Input::get("Property3Bank");
    }else{
        $isset=false;
    }
    $attrs["MortgageLender"]=$input_MortgageLender;
    $isset=true;
    if(Input::has("Property3Value")){
        $input_PropertyValue = toNum(Input::get("Property3Value"));
        $input_PropertyValue = \BLL\DataModel\DataType::getValueFromString("BigInt", $v);
    }else{
        $isset=false;
    }
    $attrs["PropertyValue"]=$input_PropertyValue;
    $isset=true;
    if(Input::has("Property3OtherMortgageValue1")){
        $input_OtherMortgageValue1 = toNum(Input::get("Property3OtherMortgageValue1"));
    }else{
        $isset=false;
    }
    $attrs["OtherMortgageValue1"]=$input_OtherMortgageValue1;
    $isset=true;
    if(Input::has("Property3OtherMortgageType1")){
        $input_OtherMortgageType1 = Input::get("Property3OtherMortgageType1");
    }else{
        $isset=false;
    }
    $attrs["OtherMortgageType1"]=$input_OtherMortgageType1;
    $isset=true;
    if(Input::has("Property3OtherMortgageValue2")){
        $input_OtherMortgageValue2 = toNum(Input::get("Property3OtherMortgageValue2"));
    }else{
        $isset=false;
    }
    $attrs["OtherMortgageValue2"]=$input_OtherMortgageValue2;
    $isset=true;
    if(Input::has("Property3OtherMortgageType2")){
        $input_OtherMortgageType2 = Input::get("Property3OtherMortgageType2");
    }else{
        $isset=false;
    }
    $attrs["OtherMortgageType2"]=$input_OtherMortgageType2;
    $$obj2 = new AppModel\Application\Property();
    $$obj2->PropertyID = uniqid();
    $attrs = array();
    $isset=true;
    if(Input::has("Property4Address")){
        $input_Address = Input::get("Property4Address");
    }else{
        $isset=false;
    }
    $attrs["Address"]=$input_Address;
    $isset=true;
    if(Input::has("morarr4")){
        $input_Arrears = Input::get("morarr4");
    }else{
        $isset=false;
    }
    $attrs["Arrears"]=$input_Arrears;
    $isset=true;
    if(Input::has("Property4Owner")){
        $input_Owner = cleanStr(Input::get("Property4Owner"));
    }else{
        $isset=false;
    }
    $attrs["Owner"]=$input_Owner;
    $isset=true;
    if(Input::has("Property4Type")){
        $input_PropertyType = cleanStr(Input::get("Property4Type"));
    }else{
        $isset=false;
    }
    $attrs["PropertyType"]=$input_PropertyType;
    $isset=true;
    if(Input::has("Property4Description")){
        $input_Description = Input::get("Property4Description");
    }else{
        $isset=false;
    }
    $attrs["Description"]=$input_Description;
    $isset=true;
    if(Input::has("Property4LandSize")){
        $input_LandSize = Input::get("Property4LandSize");
    }else{
        $isset=false;
    }
    $attrs["LandSize"]=$input_LandSize;
    $isset=true;
    if(Input::has("Property4Bedrooms")){
        $input_Bedroom = Input::get("Property4Bedrooms");
    }else{
        $isset=false;
    }
    $attrs["Bedroom"]=$input_Bedroom;
    $isset=true;
    if(Input::has("Property4Bathrooms")){
        $input_Bathroom = Input::get("Property4Bathrooms");
    }else{
        $isset=false;
    }
    $attrs["Bathroom"]=$input_Bathroom;
    $isset=true;
    if(Input::has("Property4Debt1st")){
        $input_MortgageOwing = toNum(Input::get("Property4Debt1st"));
    }else{
        $isset=false;
    }
    $attrs["MortgageOwing"]=$input_MortgageOwing;
    $attrs["MortgagePayment"]=$input_MortgagePayment;
    $isset=true;
    if(Input::has("Property4Bank")){
        $input_MortgageLender = Input::get("Property4Bank");
    }else{
        $isset=false;
    }
    $attrs["MortgageLender"]=$input_MortgageLender;
    $isset=true;
    if(Input::has("Property4Value")){
        $input_PropertyValue = toNum(Input::get("Property4Value"));
        $input_PropertyValue = \BLL\DataModel\DataType::getValueFromString("BigInt", $v);
    }else{
        $isset=false;
    }
    $attrs["PropertyValue"]=$input_PropertyValue;
    $isset=true;
    if(Input::has("Property4OtherMortgageValue1")){
        $input_OtherMortgageValue1 = toNum(Input::get("Property4OtherMortgageValue1"));
    }else{
        $isset=false;
    }
    $attrs["OtherMortgageValue1"]=$input_OtherMortgageValue1;
    $isset=true;
    if(Input::has("Property4OtherMortgageType1")){
        $input_OtherMortgageType1 = Input::get("Property4OtherMortgageType1");
    }else{
        $isset=false;
    }
    $attrs["OtherMortgageType1"]=$input_OtherMortgageType1;
    $isset=true;
    if(Input::has("Property4OtherMortgageValue2")){
        $input_OtherMortgageValue2 = toNum(Input::get("Property4OtherMortgageValue2"));
    }else{
        $isset=false;
    }
    $attrs["OtherMortgageValue2"]=$input_OtherMortgageValue2;
    $isset=true;
    if(Input::has("Property4OtherMortgageType2")){
        $input_OtherMortgageType2 = Input::get("Property4OtherMortgageType2");
    }else{
        $isset=false;
    }
    $attrs["OtherMortgageType2"]=$input_OtherMortgageType2;
    $$obj2 = new AppModel\Application\Property();
    $$obj2->PropertyID = uniqid();
    $attrs = array();
    $isset=true;
    if(Input::has("Property5Address")){
        $input_Address = Input::get("Property5Address");
    }else{
        $isset=false;
    }
    $attrs["Address"]=$input_Address;
    $isset=true;
    if(Input::has("morarr5")){
        $input_Arrears = Input::get("morarr5");
    }else{
        $isset=false;
    }
    $attrs["Arrears"]=$input_Arrears;
    $isset=true;
    if(Input::has("Property5Owner")){
        $input_Owner = cleanStr(Input::get("Property5Owner"));
    }else{
        $isset=false;
    }
    $attrs["Owner"]=$input_Owner;
    $isset=true;
    if(Input::has("Property5Type")){
        $input_PropertyType = cleanStr(Input::get("Property5Type"));
    }else{
        $isset=false;
    }
    $attrs["PropertyType"]=$input_PropertyType;
    $isset=true;
    if(Input::has("Property5Description")){
        $input_Description = Input::get("Property5Description");
    }else{
        $isset=false;
    }
    $attrs["Description"]=$input_Description;
    $isset=true;
    if(Input::has("Property5LandSize")){
        $input_LandSize = Input::get("Property5LandSize");
    }else{
        $isset=false;
    }
    $attrs["LandSize"]=$input_LandSize;
    $isset=true;
    if(Input::has("Property5Bedrooms")){
        $input_Bedroom = Input::get("Property5Bedrooms");
    }else{
        $isset=false;
    }
    $attrs["Bedroom"]=$input_Bedroom;
    $isset=true;
    if(Input::has("Property5Bathrooms")){
        $input_Bathroom = Input::get("Property5Bathrooms");
    }else{
        $isset=false;
    }
    $attrs["Bathroom"]=$input_Bathroom;
    $isset=true;
    if(Input::has("Property5Debt1st")){
        $input_MortgageOwing = toNum(Input::get("Property5Debt1st"));
    }else{
        $isset=false;
    }
    $attrs["MortgageOwing"]=$input_MortgageOwing;
    $attrs["MortgagePayment"]=$input_MortgagePayment;
    $isset=true;
    if(Input::has("Property5Bank")){
        $input_MortgageLender = Input::get("Property5Bank");
    }else{
        $isset=false;
    }
    $attrs["MortgageLender"]=$input_MortgageLender;
    $isset=true;
    if(Input::has("Property5Value")){
        $input_PropertyValue = toNum(Input::get("Property5Value"));
        $input_PropertyValue = \BLL\DataModel\DataType::getValueFromString("BigInt", $v);
    }else{
        $isset=false;
    }
    $attrs["PropertyValue"]=$input_PropertyValue;
    $isset=true;
    if(Input::has("Property5OtherMortgageValue1")){
        $input_OtherMortgageValue1 = toNum(Input::get("Property5OtherMortgageValue1"));
    }else{
        $isset=false;
    }
    $attrs["OtherMortgageValue1"]=$input_OtherMortgageValue1;
    $isset=true;
    if(Input::has("Property5OtherMortgageType1")){
        $input_OtherMortgageType1 = Input::get("Property5OtherMortgageType1");
    }else{
        $isset=false;
    }
    $attrs["OtherMortgageType1"]=$input_OtherMortgageType1;
    $isset=true;
    if(Input::has("Property5OtherMortgageValue2")){
        $input_OtherMortgageValue2 = toNum(Input::get("Property5OtherMortgageValue2"));
    }else{
        $isset=false;
    }
    $attrs["OtherMortgageValue2"]=$input_OtherMortgageValue2;
    $isset=true;
    if(Input::has("Property5OtherMortgageType2")){
        $input_OtherMortgageType2 = Input::get("Property5OtherMortgageType2");
    }else{
        $isset=false;
    }
    $attrs["OtherMortgageType2"]=$input_OtherMortgageType2;
    $$obj2 = new AppModel\Application\Property();
    $$obj2->PropertyID = uniqid();
    $attrs = array();
    $isset=true;
    if(Input::has("Property6Address")){
        $input_Address = Input::get("Property6Address");
    }else{
        $isset=false;
    }
    $attrs["Address"]=$input_Address;
    $isset=true;
    if(Input::has("morarr6")){
        $input_Arrears = Input::get("morarr6");
    }else{
        $isset=false;
    }
    $attrs["Arrears"]=$input_Arrears;
    $isset=true;
    if(Input::has("Property6Owner")){
        $input_Owner = cleanStr(Input::get("Property6Owner"));
    }else{
        $isset=false;
    }
    $attrs["Owner"]=$input_Owner;
    $isset=true;
    if(Input::has("Property6Type")){
        $input_PropertyType = cleanStr(Input::get("Property6Type"));
    }else{
        $isset=false;
    }
    $attrs["PropertyType"]=$input_PropertyType;
    $isset=true;
    if(Input::has("Property6Description")){
        $input_Description = Input::get("Property6Description");
    }else{
        $isset=false;
    }
    $attrs["Description"]=$input_Description;
    $isset=true;
    if(Input::has("Property6LandSize")){
        $input_LandSize = Input::get("Property6LandSize");
    }else{
        $isset=false;
    }
    $attrs["LandSize"]=$input_LandSize;
    $isset=true;
    if(Input::has("Property6Bedrooms")){
        $input_Bedroom = Input::get("Property6Bedrooms");
    }else{
        $isset=false;
    }
    $attrs["Bedroom"]=$input_Bedroom;
    $isset=true;
    if(Input::has("Property6Bathrooms")){
        $input_Bathroom = Input::get("Property6Bathrooms");
    }else{
        $isset=false;
    }
    $attrs["Bathroom"]=$input_Bathroom;
    $isset=true;
    if(Input::has("Property6Debt1st")){
        $input_MortgageOwing = toNum(Input::get("Property6Debt1st"));
    }else{
        $isset=false;
    }
    $attrs["MortgageOwing"]=$input_MortgageOwing;
    $attrs["MortgagePayment"]=$input_MortgagePayment;
    $isset=true;
    if(Input::has("Property6Bank")){
        $input_MortgageLender = Input::get("Property6Bank");
    }else{
        $isset=false;
    }
    $attrs["MortgageLender"]=$input_MortgageLender;
    $isset=true;
    if(Input::has("Property6Value")){
        $input_PropertyValue = toNum(Input::get("Property6Value"));
        $input_PropertyValue = \BLL\DataModel\DataType::getValueFromString("BigInt", $v);
    }else{
        $isset=false;
    }
    $attrs["PropertyValue"]=$input_PropertyValue;
    $isset=true;
    if(Input::has("Property6OtherMortgageValue1")){
        $input_OtherMortgageValue1 = toNum(Input::get("Property6OtherMortgageValue1"));
    }else{
        $isset=false;
    }
    $attrs["OtherMortgageValue1"]=$input_OtherMortgageValue1;
    $isset=true;
    if(Input::has("Property6OtherMortgageType1")){
        $input_OtherMortgageType1 = Input::get("Property6OtherMortgageType1");
    }else{
        $isset=false;
    }
    $attrs["OtherMortgageType1"]=$input_OtherMortgageType1;
    $isset=true;
    if(Input::has("Property6OtherMortgageValue2")){
        $input_OtherMortgageValue2 = toNum(Input::get("Property6OtherMortgageValue2"));
    }else{
        $isset=false;
    }
    $attrs["OtherMortgageValue2"]=$input_OtherMortgageValue2;
    $isset=true;
    if(Input::has("Property6OtherMortgageType2")){
        $input_OtherMortgageType2 = Input::get("Property6OtherMortgageType2");
    }else{
        $isset=false;
    }
    $attrs["OtherMortgageType2"]=$input_OtherMortgageType2;
    $$obj2 = new AppModel\Application\Property();
    $$obj2->PropertyID = uniqid();
    $attrs = array();
    $isset=true;
    if(Input::has("Motor1Make")){
        $input_Brand = Input::get("Motor1Make");
    }else{
        $isset=false;
    }
    $attrs["Brand"]=$input_Brand;
    $isset=true;
    if(Input::has("Motor1Model")){
        $input_Model = Input::get("Motor1Model");
    }else{
        $isset=false;
    }
    $attrs["Model"]=$input_Model;
    $isset=true;
    if(Input::has("Motor1Owner")){
        $input_Owner = cleanStr(Input::get("Motor1Owner"));
    }else{
        $isset=false;
    }
    $attrs["Owner"]=$input_Owner;
    $isset=true;
    if(Input::has("Motor1Finance")){
        $input_Finance = Input::get("Motor1Finance");
    }else{
        $isset=false;
    }
    $attrs["Finance"]=$input_Finance;
    $isset=true;
    if(Input::has("Motor1Year")){
        $input_VehicleYear = Input::get("Motor1Year");
    }else{
        $isset=false;
    }
    $attrs["VehicleYear"]=$input_VehicleYear;
    $isset=true;
    if(Input::has("Motor1Year")){
        $input_Insurance = Input::get("Motor1Year");
    }else{
        $isset=false;
    }
    $attrs["Insurance"]=$input_Insurance;
    $isset=true;
    if(Input::has("Vehicle1Value")){
        $input_VehicleValue = toNum(Input::get("Vehicle1Value"));
    }else{
        $isset=false;
    }
    $attrs["VehicleValue"]=$input_VehicleValue;
    $isset=true;
    if(Input::has("v1Owing")){
        $input_VehicleOwing = toNum(Input::get("v1Owing"));
    }else{
        $isset=false;
    }
    $attrs["VehicleOwing"]=$input_VehicleOwing;
    $isset=true;
    if(Input::has("v1Payment")){
        $input_VehiclePayment = toNum(Input::get("v1Payment"));
    }else{
        $isset=false;
    }
    $attrs["VehiclePayment"]=$input_VehiclePayment;
    $$obj2 = new AppModel\Application\Vehicle();
    $$obj2->VehicleID = uniqid();
    $attrs = array();
    $isset=true;
    if(Input::has("Motor2Make")){
        $input_Brand = Input::get("Motor2Make");
    }else{
        $isset=false;
    }
    $attrs["Brand"]=$input_Brand;
    $isset=true;
    if(Input::has("Motor2Model")){
        $input_Model = Input::get("Motor2Model");
    }else{
        $isset=false;
    }
    $attrs["Model"]=$input_Model;
    $isset=true;
    if(Input::has("Motor2Owner")){
        $input_Owner = cleanStr(Input::get("Motor2Owner"));
    }else{
        $isset=false;
    }
    $attrs["Owner"]=$input_Owner;
    $isset=true;
    if(Input::has("Motor2Finance")){
        $input_Finance = Input::get("Motor2Finance");
    }else{
        $isset=false;
    }
    $attrs["Finance"]=$input_Finance;
    $isset=true;
    if(Input::has("Motor2Year")){
        $input_VehicleYear = Input::get("Motor2Year");
    }else{
        $isset=false;
    }
    $attrs["VehicleYear"]=$input_VehicleYear;
    $isset=true;
    if(Input::has("Motor2Year")){
        $input_Insurance = Input::get("Motor2Year");
    }else{
        $isset=false;
    }
    $attrs["Insurance"]=$input_Insurance;
    $isset=true;
    if(Input::has("Vehicle2Value")){
        $input_VehicleValue = toNum(Input::get("Vehicle2Value"));
    }else{
        $isset=false;
    }
    $attrs["VehicleValue"]=$input_VehicleValue;
    $isset=true;
    if(Input::has("v2Owing")){
        $input_VehicleOwing = toNum(Input::get("v2Owing"));
    }else{
        $isset=false;
    }
    $attrs["VehicleOwing"]=$input_VehicleOwing;
    $isset=true;
    if(Input::has("v2Payment")){
        $input_VehiclePayment = toNum(Input::get("v2Payment"));
    }else{
        $isset=false;
    }
    $attrs["VehiclePayment"]=$input_VehiclePayment;
    $$obj2 = new AppModel\Application\Vehicle();
    $$obj2->VehicleID = uniqid();
    $attrs = array();
    $isset=true;
    if(Input::has("Motor3Make")){
        $input_Brand = Input::get("Motor3Make");
    }else{
        $isset=false;
    }
    $attrs["Brand"]=$input_Brand;
    $isset=true;
    if(Input::has("Motor3Model")){
        $input_Model = Input::get("Motor3Model");
    }else{
        $isset=false;
    }
    $attrs["Model"]=$input_Model;
    $isset=true;
    if(Input::has("Motor3Owner")){
        $input_Owner = cleanStr(Input::get("Motor3Owner"));
    }else{
        $isset=false;
    }
    $attrs["Owner"]=$input_Owner;
    $isset=true;
    if(Input::has("Motor3Finance")){
        $input_Finance = Input::get("Motor3Finance");
    }else{
        $isset=false;
    }
    $attrs["Finance"]=$input_Finance;
    $isset=true;
    if(Input::has("Motor3Year")){
        $input_VehicleYear = Input::get("Motor3Year");
    }else{
        $isset=false;
    }
    $attrs["VehicleYear"]=$input_VehicleYear;
    $isset=true;
    if(Input::has("Motor3Year")){
        $input_Insurance = Input::get("Motor3Year");
    }else{
        $isset=false;
    }
    $attrs["Insurance"]=$input_Insurance;
    $isset=true;
    if(Input::has("Vehicle3Value")){
        $input_VehicleValue = toNum(Input::get("Vehicle3Value"));
    }else{
        $isset=false;
    }
    $attrs["VehicleValue"]=$input_VehicleValue;
    $isset=true;
    if(Input::has("v3Owing")){
        $input_VehicleOwing = toNum(Input::get("v3Owing"));
    }else{
        $isset=false;
    }
    $attrs["VehicleOwing"]=$input_VehicleOwing;
    $isset=true;
    if(Input::has("v3Payment")){
        $input_VehiclePayment = toNum(Input::get("v3Payment"));
    }else{
        $isset=false;
    }
    $attrs["VehiclePayment"]=$input_VehiclePayment;
    $$obj2 = new AppModel\Application\Vehicle();
    $$obj2->VehicleID = uniqid();
    $attrs = array();
    $isset=true;
    if(Input::has("Motor4Make")){
        $input_Brand = Input::get("Motor4Make");
    }else{
        $isset=false;
    }
    $attrs["Brand"]=$input_Brand;
    $isset=true;
    if(Input::has("Motor4Model")){
        $input_Model = Input::get("Motor4Model");
    }else{
        $isset=false;
    }
    $attrs["Model"]=$input_Model;
    $isset=true;
    if(Input::has("Motor4Owner")){
        $input_Owner = cleanStr(Input::get("Motor4Owner"));
    }else{
        $isset=false;
    }
    $attrs["Owner"]=$input_Owner;
    $isset=true;
    if(Input::has("Motor4Finance")){
        $input_Finance = Input::get("Motor4Finance");
    }else{
        $isset=false;
    }
    $attrs["Finance"]=$input_Finance;
    $isset=true;
    if(Input::has("Motor4Year")){
        $input_VehicleYear = Input::get("Motor4Year");
    }else{
        $isset=false;
    }
    $attrs["VehicleYear"]=$input_VehicleYear;
    $isset=true;
    if(Input::has("Motor4Year")){
        $input_Insurance = Input::get("Motor4Year");
    }else{
        $isset=false;
    }
    $attrs["Insurance"]=$input_Insurance;
    $isset=true;
    if(Input::has("Vehicle4Value")){
        $input_VehicleValue = toNum(Input::get("Vehicle4Value"));
    }else{
        $isset=false;
    }
    $attrs["VehicleValue"]=$input_VehicleValue;
    $isset=true;
    if(Input::has("v4Owing")){
        $input_VehicleOwing = toNum(Input::get("v4Owing"));
    }else{
        $isset=false;
    }
    $attrs["VehicleOwing"]=$input_VehicleOwing;
    $isset=true;
    if(Input::has("v4Payment")){
        $input_VehiclePayment = toNum(Input::get("v4Payment"));
    }else{
        $isset=false;
    }
    $attrs["VehiclePayment"]=$input_VehiclePayment;
    $$obj2 = new AppModel\Application\Vehicle();
    $$obj2->VehicleID = uniqid();
    $attrs = array();
    $isset=true;
    if(Input::has("Motor5Make")){
        $input_Brand = Input::get("Motor5Make");
    }else{
        $isset=false;
    }
    $attrs["Brand"]=$input_Brand;
    $isset=true;
    if(Input::has("Motor5Model")){
        $input_Model = Input::get("Motor5Model");
    }else{
        $isset=false;
    }
    $attrs["Model"]=$input_Model;
    $isset=true;
    if(Input::has("Motor5Owner")){
        $input_Owner = cleanStr(Input::get("Motor5Owner"));
    }else{
        $isset=false;
    }
    $attrs["Owner"]=$input_Owner;
    $isset=true;
    if(Input::has("Motor5Finance")){
        $input_Finance = Input::get("Motor5Finance");
    }else{
        $isset=false;
    }
    $attrs["Finance"]=$input_Finance;
    $isset=true;
    if(Input::has("Motor5Year")){
        $input_VehicleYear = Input::get("Motor5Year");
    }else{
        $isset=false;
    }
    $attrs["VehicleYear"]=$input_VehicleYear;
    $isset=true;
    if(Input::has("Motor5Year")){
        $input_Insurance = Input::get("Motor5Year");
    }else{
        $isset=false;
    }
    $attrs["Insurance"]=$input_Insurance;
    $isset=true;
    if(Input::has("Vehicle5Value")){
        $input_VehicleValue = toNum(Input::get("Vehicle5Value"));
    }else{
        $isset=false;
    }
    $attrs["VehicleValue"]=$input_VehicleValue;
    $isset=true;
    if(Input::has("v5Owing")){
        $input_VehicleOwing = toNum(Input::get("v5Owing"));
    }else{
        $isset=false;
    }
    $attrs["VehicleOwing"]=$input_VehicleOwing;
    $isset=true;
    if(Input::has("v5Payment")){
        $input_VehiclePayment = toNum(Input::get("v5Payment"));
    }else{
        $isset=false;
    }
    $attrs["VehiclePayment"]=$input_VehiclePayment;
    $$obj2 = new AppModel\Application\Vehicle();
    $$obj2->VehicleID = uniqid();
    $attrs = array();
    $isset=true;
    if(Input::has("Motor6Make")){
        $input_Brand = Input::get("Motor6Make");
    }else{
        $isset=false;
    }
    $attrs["Brand"]=$input_Brand;
    $isset=true;
    if(Input::has("Motor6Model")){
        $input_Model = Input::get("Motor6Model");
    }else{
        $isset=false;
    }
    $attrs["Model"]=$input_Model;
    $isset=true;
    if(Input::has("Motor6Owner")){
        $input_Owner = cleanStr(Input::get("Motor6Owner"));
    }else{
        $isset=false;
    }
    $attrs["Owner"]=$input_Owner;
    $isset=true;
    if(Input::has("Motor6Finance")){
        $input_Finance = Input::get("Motor6Finance");
    }else{
        $isset=false;
    }
    $attrs["Finance"]=$input_Finance;
    $isset=true;
    if(Input::has("Motor6Year")){
        $input_VehicleYear = Input::get("Motor6Year");
    }else{
        $isset=false;
    }
    $attrs["VehicleYear"]=$input_VehicleYear;
    $isset=true;
    if(Input::has("Motor6Year")){
        $input_Insurance = Input::get("Motor6Year");
    }else{
        $isset=false;
    }
    $attrs["Insurance"]=$input_Insurance;
    $isset=true;
    if(Input::has("Vehicle6Value")){
        $input_VehicleValue = toNum(Input::get("Vehicle6Value"));
    }else{
        $isset=false;
    }
    $attrs["VehicleValue"]=$input_VehicleValue;
    $isset=true;
    if(Input::has("v6Owing")){
        $input_VehicleOwing = toNum(Input::get("v6Owing"));
    }else{
        $isset=false;
    }
    $attrs["VehicleOwing"]=$input_VehicleOwing;
    $isset=true;
    if(Input::has("v6Payment")){
        $input_VehiclePayment = toNum(Input::get("v6Payment"));
    }else{
        $isset=false;
    }
    $attrs["VehiclePayment"]=$input_VehiclePayment;
    $$obj2 = new AppModel\Application\Vehicle();
    $$obj2->VehicleID = uniqid();
